/**
 * 
 */
package com.product.profile.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.product.profile.dao.ProfileDAO;
import com.product.profile.model.Profile;

/**
 * @author asoundar
 * 
 */
@Service
@Transactional
public class ProfileServiceImpl implements ProfileService {

	@Autowired
	private ProfileDAO profileDAO;

	@Override
	public void addProfile(Profile profile) {
		profileDAO.addProfile(profile);
	}

	@Override
	public void updateProfile(Profile profile) {
		profileDAO.updateProfile(profile);
	}

	@Override
	public List<Profile> getProfiles() {
		return profileDAO.getProfiles();
	}

	@Override
	public void deleteProfile(Long profileId) {
		profileDAO.deleteProfile(profileId);
	}

	@Override
	public Profile getProfile(String profileId) {
		return profileDAO.getProfile(profileId);
	}

}
